package test.SpringMVC;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/ab")
public class abController  {

	@RequestMapping("/index")
	public void index(HttpServletRequest request,HttpServletResponse response)
	{
		try {
			response.getOutputStream().print("hello word!");
		} catch (IOException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}
}
